package sugarbind_input

class Disease_Synonym {

	String disease_Synonym_Name
    
	static constraints = {
		disease_Synonym_Name(blank:false)
		disease_Synonym_Name(unique:true)
	}
	
	static hasOne = [disease: Disease]
	
	static mapping = {
//		id column: 'disease_synonym_id'
		id generator: 'sequence', params: [sequence: 'disease_synonym_id_seq']
	}
	
	public String toString(){
		disease_Synonym_Name + " (" + disease.disease_Name + ")"
	}
}
